package com.xgll.modules.admin.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xgll.modules.admin.dao.RuleDao;
import com.xgll.modules.admin.entity.RuleEntity;
import com.xgll.modules.admin.service.RuleService;



@Service("ruleService")
public class RuleServiceImpl implements RuleService {
	@Autowired
	private RuleDao ruleDao;
	
	@Override
	public RuleEntity queryObject(Integer id){
		return ruleDao.queryObject(id);
	}
	
	@Override
	public List<RuleEntity> queryList(Map<String, Object> map){
		return ruleDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return ruleDao.queryTotal(map);
	}
	
	@Override
	public void save(RuleEntity promoterLevel){
		ruleDao.save(promoterLevel);
	}
	
	@Override
	public void update(RuleEntity promoterLevel){
		ruleDao.update(promoterLevel);
	}
	
	@Override
	public void delete(Integer id){
		ruleDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		ruleDao.deleteBatch(ids);
	}
	
}
